import {API} from '@/utils/axios'

export const createDbms = (params: any) => {
    return API.post('/api/add/dbms', params)
}

export const listDbms = (params: any) => {
    return API.get('/api/list/dbms', {params})
}

export const listTables = (params: any) => {
    return API.get(`/api/list/${params.id}/dbms-tables`)
}

export const listColumns = (params: any) => {
    return API.get(`/api/list/${params.id}/${params.table}/dbms-columns`)
}
